<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<div class="panel panel-default">
  <div class="panel-heading">跟踪记录</div>
  <div class="panel-body">
    <c:if test="${waybillTrace !=null}">
      <table class="table table-hover">

        <thead>
        <tr>
          <th>操作时间</th>
          <th>操作</th>
          <th>托运公司</th>
          <th>联系电话</th>
          <th>备注</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach var="trace" items="${waybillTrace}" varStatus="index">
          <tr>
            <td><fmt:formatDate value="${trace.operateTime}" pattern="yyyy-MM-dd HH:mm"/> </td>
            <td>${trace.operateType}</td>
            <td>${trace.companyName}</td>
            <td>${trace.companyPhoneNo1}</td>
            <td>${trace.remark}</td>
          </tr>
        </c:forEach>
        <tr></tr>
        </tbody>
      </table>
    </c:if>
    <c:if test="${waybillTrace == null}">
      <div align="center">没有数据</div>
    </c:if>
  </div>
</div>




